package com.hzit.loan.pay.mapper;

import com.hzit.loan.pay.model.RefundSerial;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RefundSerialMapper {

    int deleteByPrimaryKey(Long id);

    int insert(RefundSerial record);

    int insertSelective(RefundSerial record);

    RefundSerial selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(RefundSerial record);

    int updateByPrimaryKey(RefundSerial record);


    /**
     * 查询是否存在退款中的数据
     * @param paySerialNo
     * @return
     */
    //select * from table  where paySerialNo = paySerialNo and  statuse in (0,1,2,)
    List<RefundSerial> selectBySerialNo(String paySerialNo);

}